Skip to content

Index STEP import entities and read typed arguments without copies - #60

Merged
mahach666 merged 1 commit into
mainfrom
perf/index-step-entities
Nov 24, 2026
Merged

mahach666 merged 1 commit into
mainfrom
perf/index-step-entities

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Closes #31.

Index STEP entities by type for model import; keep public StepFile.OfType compatible with edits during enumeration. Reuse repeated type names and parse typed arguments from lazy slices rather than materializing every argument string. GetRaw reuses a full source argument or an already-materialized string. Model import is still not streaming.

The included benchmark generates a 112.6 MiB synthetic STEP with a reachable 20,000-triangle mesh. Three alternating fresh-process runs on Windows/.NET 10.0.12 gave median import times of 1.740 s before and 1.072 s after, peak working sets of 431.3 MiB and 381.4 MiB, and allocated bytes of 921.8 MiB and 884.2 MiB. Both versions imported one element and 20,000 triangles. These are synthetic workload results.

Release tests: 305 passed, 2 skipped, no failures. Benchmark project builds without warnings.

@mahach666
mahach666 merged commit c719684 into main Nov 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance: index entities by type and reduce memory use when reading large files

1 participant